Modifying Shape Properties
After you have created a shape of a given type, you can set its various properties in order to make it useful for your purposes. Some generally applicable property-setting functions, such as those that modify the attributes or owner count, are described in this chapter. Others, more specific to individual shape types, are described in the appropriate chapters of Inside Macintosh: QuickDraw GX Graphics and Inside Macintosh: QuickDraw GX Typography.In addition, however, QuickDraw GX provides several general-purpose functions that directly affect the geometry or type of a shape. The functions of this type described in this chapter allow you to
The functions that convert from one shape type to another are described in this chapter, but the rules for and consequences of conversion among shape types are specific to each shape type and thus are not described here. Table 2-5 on page 2-33 lists the chapters of Inside Macintosh: QuickDraw GX Graphics and Inside Macintosh: QuickDraw GX Typography where you can find this information.
- copy the geometry from one shape into another, which can have the effect of changing its type (see "Copying the Geometry From One Shape to Another" beginning on page 2-29)
- directly manipulate shape geometry in QuickDraw GX memory (see "Directly Manipulating a Shape's Geometry" beginning on page 2-34)
- convert a shape of one type, such as a rectangle, to another, such as a line or a bitmap (see "Converting Shapes From One Type to Another" beginning on page 2-32)